package com.fmy.mcsecurity.commons.resp;


/**
 * @author Mr.fmy
 * @version 1.0.0
 * @Description TODO
 * @createTime 2019/12/9 15:07
 */
public enum SecurityResp implements SecurityRespEnum {

    TOKEN_INVALID_ERROR("50010", "认证已过期，请重新登录"),

    TOKEN_KICK_ERROR("50011", "{0}"),

    TOKEN_REFRESH_NULL_ERROR("50012", "Refresh token cannot be empty"),

    TOKEN_REFRESH_UNKNOWN_ERROR("50013", "Refresh token unknown server error"),

    TOKEN_REFRESH_EXPIRE("50014", "刷新token无效或已过期"),

    TOKEN_REFRESH_NOT_SUPPORT("50015", "目前不支持刷新token功能"),

    PARAM_FAIL_ERROR("50050", "登录参数填充异常，{0}"),

    PARAM_FAIL_TYPE_ERROR("50051", "未匹配到相关登录方式"),

    PARAM_FAIL_NOT_CLIENT_ERROR("50052", "未匹配到相关client"),

    SAFETY_VIOLENCE_LOGIN("SAFETY_VIOLENCE_LOGIN", "{0}");

    String code;
    String desc;

    SecurityResp(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return this.code;
    }

    public String getDesc() {
        return this.desc;
    }
}
